home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
utility
/
tsbat50.zip
/
M.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-10-21
|
1KB
|
45 lines
echo off
echo.
echo ┌───────────────────────────────────────────────────┐
echo │ M(ultiple) command batch processor │
echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 21-Oct-90 │
echo └───────────────────────────────────────────────────┘
echo.
if "%1"=="" goto _help
set _command=
:_loop
if "%1"=="" goto _do_last
if "%1"=="-" goto _doit
set _command=%_command% %1
shift
goto _loop
:_doit
%_command%
set _command=
shift
goto _loop
:_do_last
%_command%
goto _out
:_help
echo If you have been bothered by the fact that MsDos cannot handle more
echo than one command at the command line, here is the batch for you.
echo.
echo Usage: M [FirstCommand] [Parameters] [-] [SecondCommand] [Parameters] [...]
echo.
echo Examples: M dir *.exe - dir /w *.bat
echo.
echo If you get an "Out of environment space" message, increase your
echo environment space by using shell configuration in config.sys:
echo MsDos 3.30 example: shell=c:\bin\command.com /e:1024 /p
echo.
:_out
set _command=
echo on